package com.sponsorpay.sdk.android.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;

public class HttpResponseParser
{
  public static String extractResponseString(HttpResponse paramHttpResponse)
  {
    try
    {
      InputStream localInputStream = paramHttpResponse.getEntity().getContent();
      BufferedReader localBufferedReader = new BufferedReader(new InputStreamReader(localInputStream));
      StringBuilder localStringBuilder = new StringBuilder();
      while (true)
      {
        String str = localBufferedReader.readLine();
        if (str == null)
        {
          localInputStream.close();
          return localStringBuilder.toString();
        }
        localStringBuilder.append(str + "\n");
      }
    }
    catch (IOException localIOException)
    {
    }
    return null;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.sponsorpay.sdk.android.utils.HttpResponseParser
 * JD-Core Version:    0.6.2
 */